"use strict";
/**
 * @bussiness {搜索}
 * @author {JC}
 * @date {2022-09-28}
 * **/
const Controller = require("egg").Controller;
class Search extends Controller {
    /**
     * @effect {拿取搜素匹配信息数据}
     * @params {keywords}
     **/
    async searchSomeList() {
        const { ctx } = this;
        const params = ctx.request.body;
        const res = await ctx.service.search.index.takeSearchList(params);
        ctx.body = {
            status: 200,
            data: res,
            msg: "success",
        };
    }
}
module.exports = Search;
